<?php
	class UserModel extends Model
	{
		public function UserModel()
		{
			parent::Model();
		}

		public function add($user)
		{
			$this->load->database();
			return $this->db->insert('user', $user);
		}

		public function update($user)
		{
			$this->load->database();
			$this->db->where('Uid', $user->Uid);
			return $this->db->update('user', $user);
		}

		public function delete($id)
		{
			$this->load->database();
			return $this->db->delete('user', array('Uid' => $id));
		}
	}
?>